package priv.yiyuan.example.design.message;

/**
 * 紧急消息
 * <p>
 * 桥接模式(抽象扩展部分)
 *
 * @author YiYuan
 * @data 2025/8/18
 * @apoNote
 */
public class UrgentNotification extends Notification {

    public UrgentNotification(MessageSender sender) {
        super(sender);
    }

    @Override
    public void notifyUser(String message) {

        System.out.println("紧急消息: ");
        sender.send("[紧急]" + message);

    }


}
